package com.example.chatchatbackend.service.sendJob;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chatchatbackend.entity.dto.send.SendNotice;
import com.example.chatchatbackend.entity.vo.response.SendNoticeVO;

import java.time.LocalDateTime;
import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 丁真
 * @since 2024-10-28 05:03:47
 */
public interface SendNoticeService extends IService<SendNotice> {

    List<SendNoticeVO> getAllSendNotice();

    IPage<SendNotice> pageThree(Integer pageNum, Integer pageSize) ;

    SendNoticeVO insertSendNotice(SendNoticeVO sendSendNoticeVO);

    List<SendNoticeVO> insertSendNoticeList(List<SendNoticeVO> sendSendNoticeVOList);

    SendNoticeVO updateSendNotice(SendNoticeVO sendNoticeVO);

    void deleteByIds(List<Integer> ids);

    List<SendNoticeVO> findByTitle(String title);

    List<SendNoticeVO> findTasksToSend(LocalDateTime currentTime);

}
